// type Tree = {
//     name: string
//     code: string
//     children: Tree
//     users: {
//         name: string
//         code: string
//     }[]
// }[]
const data = [
    {
        name: 'A',
        code: 'A',
        children: [],
        user: [
            {
                name: 'a',
                code: 'a'
            }
        ]
    }
]

const returnData = [
    {
        name: 'A-name',
        code: 'A',
        children: [],
        user: [
            {
                name: 'a-name',
                code: 'A:a'
            }
        ]
    }
]